package com.shop.common.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shop.common.entity.QuestionOption;
import com.shop.common.typeHandler.QuestionOptionsTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value="试卷试题VO")
@TableName(autoResultMap = true)
public class PaperQuestionVo implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "题目")
    private String title;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "选项")
    @TableField(typeHandler = QuestionOptionsTypeHandler.class)
    private List<QuestionOption> options;

    @ApiModelProperty(value = "解释")
    private String explanation;

    @ApiModelProperty(value = "关键词")
    private String keywords;

    @ApiModelProperty(value = "分数")
    private Integer score;

    @ApiModelProperty(value = "用户答案")
    private String userAnswer;

    @ApiModelProperty(value = "素材URL")
    private String url;

    @ApiModelProperty(value = "结果：0-错误，1-正确")
    private Integer result;
}
